<html>
<head>
<title>Enter OCC Transactions</title>
</head>
<body>
<b>{{msg}}</b>
<form action="/addOCCTrans" method="post">
<table>
<tr>
<td>Operation: </td>
<td>
<select name="opn">
<option value="r">Read</option>
<option value="w">Write</option>
<option value="c">Commit</option>
<option value="a">Abort</option>
</select>
</td></tr>
<tr>
<td>Data Item Name:</td><td> <input name="key" value="{{din}}" maxlength="5" size="15"/> </td></tr>
<tr><td>Data Item Value:</td><td> <input name="value" value="{{div}}" size="15" maxlength="5" /> </td></tr>
<tr><td>Transaction Seq No:</td><td> <input name="txn" type="text" value="{{transactionid}}" size="15" maxlength="15"/></td></tr>
<tr><td align="center" colspan="2"><input type="submit" value="Submit"></td><td>&nbsp;</td></tr>
</table>

<br />
<br />
Current Transaction Phase: {{transaction.phase}}<br />
Transaction Id (assigned after commit): {{transaction.tid}}<br />
FStart (assigned during begin): {{transaction.fstart}}<br />
FEnd  (assigned during commit): {{transaction.fend}}<br />
Operations so far for Sequence No: {{transaction.sno}}<br />
<br />
<br />
<table border="1">
<tr>
	<th>Operation Type</th>
	<th>Data Item (relevant only for read and write)</th>
	<th>Data Item Value(relevant only for read and write)</th>
</tr>
{% for op in operations %}
<tr>
	<td>{{op.optype}}&nbsp;</td>
	<td>{{op.din}}&nbsp;</td>
	<td>{{op.div}}&nbsp;</td>
</tr>
{% endfor %}

</form>
</body>
